import 'dotenv/config';
import http from 'http';

const PORT = process.env.PORT;
const server = http.createServer
((req, res) => {
    res.writeHead(200, {'Content-Type': 'text/html'});
    res.end("<h1>Hello World!</h1>");
});

server.listen(PORT, () =>{
    console.log(`服务器已启动,监听端口${PORT}`);
});